package home_4_8.company;

public class Company {
    private String name;
    private  int num;
//    private  String tbname;
//    private  int tbnum;

//封装方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
//    构造方法
    Company()
    {

    }
    Company(String name,int num)
    {
        this.name=name;
        this.num=num;
    }
    //  特殊方法，没有返回值
void output()
{
    System.out.println("公司的名字是"+"\t"+name+"\t"+"员工数是"+"\t"+num);
}


}
